package com.itcast.springboot3x.controller;

import com.itcast.springboot3x.domain.UserBean;
import com.itcast.springboot3x.inVo.UserParams;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangtian105
 * @date 2023/5/25
 * @apiNote
 */
@RestController
@RequestMapping(value = "field")
public class FieldExpansionController {
    @GetMapping(value = "expansion")
    public UserBean fieldExpansion(UserParams userParams) {
        UserBean userBean = new UserBean();
        userBean.setId("1000");
        //userBean.setUsername("zhangtian");
        userBean.setPassword("123456");
        //userBean.setEmail("zhangtian@qq.com");

        return userBean ;
    }
}
